#ifndef EDITDICTIONARY_H
#define EDITDICTIONARY_H

#include <QDialog>

#include <api/systemManager/dictionarymanagerapi.h>

#include <Entity/DictType.h>

namespace Ui {
class EditDictionary;
}

class EditDictionary : public QDialog
{
    Q_OBJECT

public:
    explicit EditDictionary(qlonglong id,QWidget *parent = nullptr);
    ~EditDictionary();

signals:
    void success();

private slots:
    void on_btn_cancel_clicked();

    void on_btn_ok_clicked();

private:
    Ui::EditDictionary *ui;
    DictionaryManagerApi api;
    qlonglong id;
    DictType dict;

    void init();
};

#endif // EDITDICTIONARY_H
